<gn-dialog [customConfirm]="true" (onConfirm)="confirm()" title="管理员信息">
  <form gnForm url="/MANAGE-SERVICE/administrators">
    <gn-form-field label="登录名" field="id" [formGroup]="form.formGroup"
                   [validators]="[{message: '请输入', name: 'required', validatorFn: form.validators.required}]">
      <input matInput placeholder="请输入登录名" required="true" formControlName="id">
    </gn-form-field>
    <gn-form-field label="姓名" field="name" [formGroup]="form.formGroup"
                         [validators]="[{message: '请输入', name: 'required', validatorFn: form.validators.required}]">
      <input matInput placeholder="请输入姓名" required="true" formControlName="name">
    </gn-form-field>
    <gn-form-field label="密码" field="password" [formGroup]="form.formGroup"
                         [validators]="[{message: '请输入', name: 'required', validatorFn: form.validators.required}]">
      <input matInput placeholder="请输入密码" type="password" required="true" formControlName="password">
    </gn-form-field>
    <gn-form-field label="确认密码" field="passwordConfirm" [formGroup]="form.formGroup"
                         [validators]="[{message: '确认密码不匹配', name: 'equals', validatorFn: form.validators.equals(form.formGroup.controls['password'])}]">
      <input matInput placeholder="请输入确认密码" type="password" required="true" formControlName="passwordConfirm">
    </gn-form-field>
  </form>
</gn-dialog>
